#ifndef BT_H_
#define BT_H_

/*ERROR LIST*/
#define BT_ERROR_BASE    2100

#define BT_OK           0                       /* Operation Successful */
#define BT_ERROR        (BT_ERROR_BASE + 1)     /* Operation Fail*/
#define BT_ETIME        (BT_ERROR_BASE + 2)     /* Timer expired  */
#define BT_ECADV        (BT_ERROR_BASE + 3)     /* cancel adv */
#define BT_EWCMD        (BT_ERROR_BASE + 4)     /* Write Fail*/
#define BT_ERCMD        (BT_ERROR_BASE + 5)     /* Cmd Return Fail*/
#define BT_ECONN        (BT_ERROR_BASE + 6)     /* Not Connected*/
#define BT_EIDLE        (BT_ERROR_BASE + 7)     /* Not Idle*/
#define BT_EINIT        (BT_ERROR_BASE + 8)     /* Init Fail*/

/*EVENT LIST*/
#define BT_EVENT_BASE    2200
#define BT_PIN_REQ      (BT_EVENT_BASE + 4)

typedef struct {
    uint8_t name[33];
    uint8_t addr[6];
}bt_info_t;

typedef enum{
	BT_STATUS_IDLE = BT_EVENT_BASE + 1,
	BT_STATUS_ADVERTISING,
	BT_STATUS_CONNECTED,
}bt_status_t;


#endif /* BT_H_ */
